package com.yonyou.isv.demo.openapi.api.goods;

import com.yonyou.isv.demo.openapi.base.module.reponse.ApiDataResponse;
import com.yonyou.isv.demo.openapi.api.BaseOpenApi;
import com.yonyou.isv.demo.openapi.api.OpenApiURL;
import org.springframework.stereotype.Component;

import java.util.Map;

/**
 * @description: 用友货位开放平台接口
 * @author: zpp
 * @create: 2021-08-11
 **/
@Component
public class GoodsPositionApi extends BaseOpenApi {
    public Map<String,Object> save(Map<String,Object> params)
    {
        ApiDataResponse apiDataResponse = postForEntity(OpenApiURL.GOODPOS_SAVE, params, ApiDataResponse.class);
        return getData(apiDataResponse);
    }
    public Map<String,Object> tree(Map<String,Object> params)
    {
        ApiDataResponse apiDataResponse = postForEntity(OpenApiURL.GOODPOS_TREE, params, ApiDataResponse.class);
        return getData(apiDataResponse);
    }

}
